//
//  NetworkService.swift
//  yunshang
//
//  Created by zw on 2019/5/29.
//  Copyright © 2019 zw. All rights reserved.
//

import RxSwift
import RxCocoa

class NetworkService {
    //登录
    func login(username:String,password:String) -> Observable<ZWData> {
        return YSProvider.rx.request(.login(username: username, password: password)).asObservable().mapJSON().mapObject(type: ZWData.self)
    }
    
}
